import request from '@/utils/request'

// 查询原始虚拟库存列表
export function listOrigvirtualinventory(query) {
  return request({
    url: '/product/origvirtualinventory/list',
    method: 'get',
    params: query
  })
}

// 查询原始虚拟库存详细
export function getOrigvirtualinventory(id) {
  return request({
    url: '/product/origvirtualinventory/' + id,
    method: 'get'
  })
}

// 新增原始虚拟库存
export function addOrigvirtualinventory(data) {
  return request({
    url: '/product/origvirtualinventory',
    method: 'post',
    data: data
  })
}

// 修改原始虚拟库存
export function updateOrigvirtualinventory(data) {
  return request({
    url: '/product/origvirtualinventory',
    method: 'put',
    data: data
  })
}

// 删除原始虚拟库存
export function delOrigvirtualinventory(id) {
  return request({
    url: '/product/origvirtualinventory/' + id,
    method: 'delete'
  })
}
